Beginning: SharePoint® 2013 Development by Steve Fox & Chris Johnson & Donovan Follette
Author:Steve Fox & Chris Johnson & Donovan Follette
Language: eng
Format: epub
Publisher: John Wiley & Sons
Published: 2013-01-24T16:00:00+00:00
20. Run and launch the app again using the Run Project button in the bottom left of the window. This time an alert appears stating, “New ListItems created.”
21. Check the list in the SharePoint site to ensure the data has been created. You should see ten new items created in the list.
22. Within the sharePointReady function, change the createItems(); call to updateListItem();.
23. Directly after the sharePointReady function, insert the following code: var updatedItem; function updateListItem() { var listContext = new SP.AppContextSite(context, hostUrl); var list = listContext.get_web().get_lists().getByTitle('My Sample List'); var listItem = list.getItemById(1); listItem.set_item('Title', 'Updated via JS CSOM'); listItem.update(); context.load(listItem); context.executeQueryAsync(onUpdateItemSucceeded, onFailed); } function onUpdateItemSucceeded() { alert('Updated item!'); }
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
NET | C & C++ Windows Programming |
SQL Server | VBA |
Visual Basic |
Deep Learning with Python by François Chollet(12437)
Hello! Python by Anthony Briggs(9784)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9676)
The Mikado Method by Ola Ellnestam Daniel Brolund(9669)
Dependency Injection in .NET by Mark Seemann(9211)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8178)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7670)
Grails in Action by Glen Smith Peter Ledbrook(7591)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7431)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(6557)
Microservices with Go by Alexander Shuiskov(6314)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6302)
Practical Design Patterns for Java Developers by Miroslav Wengner(6226)
Test Automation Engineering Handbook by Manikandan Sambamurthy(6200)
Angular Projects - Third Edition by Aristeidis Bampakos(5543)
The Art of Crafting User Stories by The Art of Crafting User Stories(5127)
NetSuite for Consultants - Second Edition by Peter Ries(5080)
Kotlin in Action by Dmitry Jemerov(4941)
Demystifying Cryptography with OpenSSL 3.0 by Alexei Khlebnikov(4877)
